package data;

import java.sql.Date;

/**
 *
 * @author groep 11
 * @date 2007-2008
 */
public class TradeContract {
    private int contractId;
    private Date expirationDate;
    private int village1Id;
    private String resourceVillage1;
    private int resourcesAmountVillage1;
    private int village2Id;
    private String resourceVillage2;
    private int resourcesAmountVillage2;

    
     /**
     * Constructor with all parameters
     * @param contractId
     * @param expirationDate
     * @param village1Id
     * @param resourceName
     * @param resourcesAmountVillage1
     * @param village2Id
     * @param resourceVillage2
     * @param resourcesAmountVillage2
     */
    public TradeContract(int contractId, Date expirationDate, int village1Id, String resourceVillage1,
            int resourcesAmountVillage1, int village2Id, String resourceVillage2, int resoucesAmountVillage2) {
        
        this.setContractId(contractId);
        this.setExpirationDate(expirationDate);
        this.setVillage1Id(village1Id);
        this.setResourceVillage1(resourceVillage1);
        this.setResourcesAmountVillage1(resourcesAmountVillage1);
        this.setVillage2Id(village2Id);
        this.setResourceVillage2(resourceVillage2);
        this.setResourcesAmountVillage2(resoucesAmountVillage2);
    }
    
    /**
     * Constructor with all parameters but contractId. 
     * Hier wordt standaard id 0 ingesteld.
     * @param expirationDate
     * @param village1Id
     * @param resourceName
     * @param resourcesAmountVillage1
     * @param village2Id
     * @param resourceVillage2
     * @param resourcesAmountVillage2
     */
    public TradeContract(Date expirationDate, int village1Id, String resourceVillage1,
            int resourcesAmountVillage1, int village2Id, String resourceVillage2, int resoucesAmountVillage2) {
        
        this(0, expirationDate, village1Id, resourceVillage1, resourcesAmountVillage1,
                village2Id, resourceVillage2, resoucesAmountVillage2);
    }
    
    
    public int getContractId() {
        return contractId;
    }

    public void setContractId(int contractId) {
        this.contractId = contractId;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public int getVillage1Id() {
        return village1Id;
    }

    public void setVillage1Id(int villageId) {
        this.village1Id = villageId;
    }

    public String getResourceVillage1() {
        return resourceVillage1;
    }

    public void setResourceVillage1(String resourceName) {
        this.resourceVillage1 = resourceName;
    }

    public int getResourcesAmountVillage1() {
        return resourcesAmountVillage1;
    }

    public void setResourcesAmountVillage1(int amount) {
        this.resourcesAmountVillage1 = amount;
    }

    public int getVillage2Id() {
        return village2Id;
    }

    public void setVillage2Id(int villageId) {
        this.village2Id = villageId;
    }

    public String getResourceVillage2() {
        return resourceVillage2;
    }

    public void setResourceVillage2(String resourceName) {
        this.resourceVillage2 = resourceName;
    }

    public int getResourcesAmountVillage2() {
        return resourcesAmountVillage2;
    }

    public void setResourcesAmountVillage2(int amount) {
        this.resourcesAmountVillage2 = amount;
    }
    
    

}
